package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.RoleGroups;

public interface IRoleGroupsService {

	int deleteByPrimaryKey(String roleGroupId) throws Exception;

	int insertSelective(RoleGroups record) throws Exception;

	RoleGroups selectByPrimaryKey(String roleGroupId);
	
	RoleGroups selectByRoleGroupName(String roleGroupName);
	
	int updateByPrimaryKeySelective(RoleGroups record) throws Exception;
	
	/**
	 * 批量删除角色组信息.
	 * @param roleGroupIdList
	 * @return
	 */
	int deleteRoleGroupsByIdBatch(List<String> roleGroupIdList) throws Exception;
	
	/**
	 * 获取角色组列表
	 * @return
	 */
	List<RoleGroups> queryRoleGroupsInfoList();

	/**
	 * 查询
	 * @param queryCriteria
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PagedResult<RoleGroups> queryListByPage(String queryCriteria,Integer pageNo, Integer pageSize);
	
	/**
	 * 获取角色组总记录数.
	 * @return
	 */
	Integer getRoleGroupsCount(String queryCriteria);
}